package com.celesea.auth.menu.v1.controller;

import com.celesea.auth.menu.service.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JackYuan
 * @create 2017-10-25 21:49
 */
@Api(tags = "菜单接口")
@RestController
@RequestMapping("v1/menus")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping
    @ApiOperation(value = "菜单接口")
    public Object index() {
        return menuService.selectMenus();
    }

}
